package routers

import (
	"github.com/gin-gonic/gin"
	"muziai-server/api"
	"muziai-server/middleware"
)

func OrderRouter(r *gin.RouterGroup) {
	middleware := middleware.MiddlewareAuth{}
	app := api.ApiApp.OrderApi
	r.POST("order", middleware.MiddlewareAuth(), app.OrderCreateView)
	r.GET("order", middleware.MiddlewareAuth(), app.OrderListView)
	r.DELETE("order", middleware.MiddlewareAuth(), app.OrderRemoveView)
	r.GET("order/status", middleware.MiddlewareAuth(), app.OrderStatusView)
}
